public class StringDemo8 {
    /**
     * @author dengjiangming
     * @version 1.0.0
     * @date 2025-06-19
     */

    //消除字符串两侧的空白
    public static void main(String[] args) {
        String s = "   abc d e f g  ";
        System.out.println(s);

        String s1 = s.trim();
        System.out.println(s1);
    }


}
